package cn.org.timespace.easyframe.service.permission.impl;

import java.util.List;

import cn.org.timespace.easyframe.action.permission.EfDictionaryModel;
import cn.org.timespace.easyframe.dao.permission.EfDictionaryDAO;
import cn.org.timespace.easyframe.model.permission.EfDictionary;
import cn.org.timespace.easyframe.model.permission.EfDictionaryId;
import cn.org.timespace.easyframe.service.permission.EfDictionaryService;



public class EfDictionaryServiceImpl implements EfDictionaryService{
	    private EfDictionaryDAO efDictionaryDAO;

		public EfDictionaryDAO getEfDictionaryDAO() {
			return efDictionaryDAO;
		}
 
		public void setEfDictionaryDAO(EfDictionaryDAO efDictionaryDAO) {
			this.efDictionaryDAO = efDictionaryDAO;
		}

		public void attachClean(EfDictionary instance) {
			// TODO Auto-generated method stub
			efDictionaryDAO.attachClean(instance);
		}

		public void attachDirty(EfDictionary instance) {
			// TODO Auto-generated method stub
			
		}

		public void delete(EfDictionary persistentInstance) {
			// TODO Auto-generated method stub
			efDictionaryDAO.delete(persistentInstance);
		}
		
		public List<EfDictionary> findByCondition(EfDictionaryModel model){
			return efDictionaryDAO.findByCondition(model);
		}

		public List findAll() {
			// TODO Auto-generated method stub
			return efDictionaryDAO.findAll();
		}

		public List findByExample(EfDictionary instance) {
			// TODO Auto-generated method stub
			return null;
		}

		public List findByExesql(Object exesql) {
			// TODO Auto-generated method stub
			return null;
		}

		public List findByFilter(Object filter) {
			// TODO Auto-generated method stub
			return null;
		}

		public EfDictionary findById(EfDictionaryId id) {
			// TODO Auto-generated method stub
			return efDictionaryDAO.findById(id);
		}

		public List findByItemname(Object itemname) {
			// TODO Auto-generated method stub
			return null;
		}

		public List findByProperty(String propertyName, Object value) {
			// TODO Auto-generated method stub
			return null;
		}

		public List findByRemark(Object remark) {
			// TODO Auto-generated method stub
			return null;
		}

		public List findByType(Object type) {
			// TODO Auto-generated method stub
			return null;
		}

		public EfDictionary merge(EfDictionary detachedInstance) {
			// TODO Auto-generated method stub
			return null;
		}

		public void save(EfDictionary transientInstance) {
			efDictionaryDAO.save(transientInstance);
		}

		public void update(EfDictionary instance) {
			// TODO Auto-generated method stub
			efDictionaryDAO.update(instance);
		}

		/**
		 * 添加table类型的数据字典时，自动生成itmeValue
		 */
		public void saveWithAutoGeneratorItemValue(EfDictionary efDictionary, String groupName) {
			efDictionaryDAO.saveWithAutoGeneratorItemValue( efDictionary,  groupName);
		}
		
		/**
		 *  可供转入的餐台
		 * @return
		 */
		public List<EfDictionary> getCateringForChange(){
			return efDictionaryDAO.getCateringForChange();
		}
		
}
